package com.backend.system.beans.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * 禁用或启用菜单请求体
 *
 * @author backend-manage
 */
@ApiModel
@Data
public class MenuDisableOrEnableReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -3912651024609609399L;

    /**
     * 菜单ID
     */
    @NotNull(message = "菜单ID不能为空")
    @ApiModelProperty(value = "菜单ID", required = true)
    private Long menuId;

    /**
     * 是否启用，1：启用 0：禁用
     */
    @NotNull(message = "是否启用标识不能为空")
    @ApiModelProperty(value = "是否启用", required = true)
    private Integer enabled;
}
